package com.aruba.download.service.impl;

import com.aruba.download.bean.Player;
import com.aruba.download.mapper.PlayerMapper;
import com.aruba.download.service.PlayerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class PlayerServiceImpl implements PlayerService {
    @Autowired
    private PlayerMapper playerMapper;

    @Override
    public Integer addPlayer(Player player) {
        return playerMapper.addPlayer(player);
    }

    @Override
    public List<Player> findAllPlayers() {
        return playerMapper.findAllPlayers();
    }
}
